package com.game.load
{
	import com.game.ui.progress.SceProgressBarManager;
	
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	
	public class BatchLoad extends EventDispatcher
	{
		public function BatchLoad(target:IEventDispatcher=null)
		{
			super(target);
		}
		
		public function initData():void
		{
			LoadStateMachine.getInstance().pushState(LoadState.LOAD_STATE_BASE_RESOURCE);
			LoadStateMachine.getInstance().pushState(LoadState.LOAD_STATE_CONFIG);
			LoadStateMachine.getInstance().pushState(LoadState.LOAD_STATE_MAIN_UI);			
			LoadStateMachine.getInstance().run();
		}
	}
}